package com.bit.BlogTest.Service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bit.BlogTest.Model.Blog;
import com.bit.BlogTest.Repository.BlogRepository;


@Service
public class BlogServiceImpl implements BlogService {
	
	@Autowired
	BlogRepository blogRepository;
	
	public List<Blog> getAllContents() {
		
		return blogRepository.findAllContents();
	}

	public Blog getContentById(int id) {
		
		return null;
	}

	public boolean insertContent(Blog blog) {
		return blogRepository.insertContent(blog);
	}
	
	

}
